const path = require('path')
const HappyPack = require('happypack')
const os = require('os')
const happyThreadPool = HappyPack.ThreadPool({ size: os.cpus().length })

module.exports = {
	mode: 'production',
    entry: path.resolve(__dirname, './src/main.js'),
    plugins: [
		new HappyPack({
			id: 'babel',
			loaders: [
				{
					loader: 'babel-loader'
				}
			],
			threadPool: happyThreadPool
		})
	]
};